#include<cstdio>
#include<ctime>
#include<algorithm>

int main()
{
	srand(time(0));

	int n = rand() % 10+1;
	int m = rand() % 10+1;

	for(int i=1; i<=n; ++i)
		printf("%c", rand()%4 + 'a');
	printf("\n");
	for(int i=1; i<=m; ++i)
		printf("%c", rand()%4 + 'a');

	return 0;
}
